#include <QApplication>
#include <QDesktopWidget>
#include <QTextCodec>
#include "register.h"

int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
	QTextCodec::setCodecForCStrings (QTextCodec::codecForName("UTF-8"));
	Register *reg = new Register;
	QRect desktop = QApplication::desktop()->screenGeometry();

	int width = desktop.width();
	int height = desktop.height();

	reg->move((width-reg->width())/2, (height-reg->height())/2);
	reg->showNormal();
	return app.exec();
}
